fixing encryption unit test