fixed all condition_test.rb