Move all test cases into source files