Added tasks api tests