Implement test cases in CommonTest.java