Fixes a few issues when using the test hook functionality
Project ID is an integer not string
Running the cli from the bin folder isn't supported
We call getProject on the app property - however this is the cli application which doesn't have the function. In this case we need to explicitly get the WebApplication which contains that method (Would it be better to have an TrackerApplicationInterface which contains this method with a trait that has this method in both apps have available?)