fix for test cases
fixing encryption tests