Fix dependencies on PEM in tests and programs
3 files changed