simple OO modelling and testing in ruby