migrate test cases from test/resources to test/java