task manager model and tests