Added unit tests for task collection model.