rb : class ok. now, refactoring the tests