Fixing the unit tests except for record/base_test.rb

relating to #103