implement TestCases.(X/Y), fix compilation errors