Move testcase extensions into their own file.