clean up after RecordStore tests

This cleans up the directories and file created by the RecordStore tests, so subsequent test runs start from scratch, and other tests aren't affected by the changes to the filesystem state.

@marco-c can you review?