fixed bug in test method, timestamp is now set correctly