getDate method test passed