added tests for record.rb