Fix for tests always failing when default timezone not set

Tests would always fail in some installations of PHP where the default timezone was not set.