Fix unit test defect on to timestamp
Moved to PHPUnit