added teacher, course factories and model tests