Function checkTask added. Added tests that check if proper messages are created for errors in task specification
Invalid task specifications added for test purposes.