basic test for java.time methods