Fixed some timezone bugs
Added time test function