Added first part of unit tests for tasks. Still need to find a proper way to mock mongoose call