refactored directory#add_student and refactored test helper methods in directory_spec