Changed delete endpoint in tests