fixed encryption test