Added some more tests
Added some more tests
Changed implementation of hasTaskRegistered method