refactor the way to get the project from the request args
added test for checking that the project is correctly extracted from the request args