Port authenticate middleware test cases to mocha.
Port authenticate middleware test cases to mocha.
Port authenticate middleare test cases to mocha.
Respect list notation when invoking callback on failure.