apply test cases