Add tests for timestamps for database