add auth info middleware test case