main test method in cases