build test cases