date test with method