Added unit tests for onetimepad.