fix test and remove script directory