write tests for TASK controller