Added tests for the Task.java model