Fix TEST_FILE and change string formatting