Adds tests for new 'get running task' function of the API