Added unit tests for SCRAM-SHA-1 and fixed things to work