added encryption test