critical changes to test.rb