add test_stable_ciphertext
change error message prefix from ! to ERROR
use sys.stderr for error messages
enhance error messages