fixed invalid test to support different time zones