Changed the validation of the url parameter
Added a status code
Added some more tests