add test to validate inheriting from BaseMiddleware