Fix possible authentication problem with turkish locale

The test server now treats authentication schemes case-independent.
Fix warnings from clang-analyzer 3.6