Removing extra data from test file