Add a test case for changing the type of a file.