fix TEST_FILETREE error and restrict line up to TEST_FILETREE