Man accused of raping wife, court told