Restructure reference test cases to new structure.