merged test.rb from minimal-testcase