Add test for Application::task(), fixed bug which caused the actions end up in prerequisites if task() is called with two arguments