splitting teacher in tests, refactoring code on user_specs