improve and expand test coverage
provide error messages when secrets are missing in encryptino tests