unit tests for cipher at all 3 key sizes, plus a couple fixes so that all tests pass