added basic integration tests
Return code 404 for errors
Return code 404 for errors