Refactoring
Add factory for invalid practice
User and lesson id presence

Make sure that no model is created without a valid user id and lesson id