Fix bug of appending multiple instances of an item to the result of a goto
Remove test files