tests for verifyClient middleware