added lossless test case.  Fixed small typo in key_helper.js