made tests pass.
bug fix: protected keys are not case sensitive.
Merge remote-tracking branch 'origin/master'