resolved the compilation errors in the test cases