Add spec for using setTime method

covers #50