URL Shortener Microservice Error

I’m using https://narrow-plane.glitch.me/ to test my invalid URL portion of my code and I am returned with the following error

TypeError: Cannot read property 'toLowerCase' of undefined

I am also seeing a discrepancy with what the test is using for the GET method for the redirect for the 2 test cases. It wants to use /api/shorturl/undefined/:short/ and not /api/shorturl/:short

Both of those tests throw an error as well even though when I hit the route on my own, it does do the redirect as it should.

Glitch (src): https://glitch.com/edit/#!/malachite-gainful-mayflower
Glitch: https://malachite-gainful-mayflower.glitch.me/

Is this an issue with the test itself?