Move tests to another C file