Added test for comparing with local time
Fixed poor test