unit test: customAuthCheck (coverage => 98%)