Moved the casefile test code to its own file.