Added tests of sasl utils
Fixes of bugs in sasl utils founded by tests