There's 4 different conditions tested in that middleware, you could use a few more tests to make sure they function as expected as well.