Improved time parsing in test file