Added tests for record collisions where the data is not a hash

I also moved the record collision tests to their own file.