encrypt unit test