encryption unit test