A woman accused of spying for Russia thought she was assisting her boyfriend with police work, she has told a court.