Move test java source code into test case classes