Return 404 on DELETE of nonexistent entity_type

Also, copy development environment fix in database.example.yml to
test