Test that the working directory is set to the projectDirectory on task invocation