IImplemented and tested method to check wether a requested url is contained within the endpoints
Minor test refactor