More unit tests on input handler middleware.