Set last to the date object rather than the return of setTime()
Add basic time test