added tests to tasks controller spec