Added test_helper.rb and modified some test files