fixed test so that it tests against local time zone