Add tests for TaskEntityManager

TaskEntityManager now has ~85% code coverage. The missing methods are
the advanced HTTP requests, which are not implemented.