Removed unused hard-coded test code

These are no longer used since the middleware is used.

/cc @nschonni