Fix time checking
Fix test, remove extra quote