move the class to base.rb
more complicated test