Add new test with throw for bad usage API