Feature/400 readd end goal

Re-add end_goal to tasks
Add some more js tests for tasks
Remove some debug prints from py/api tests