Refactor test::unit/ruby