Added mocking, added additional tests, generating encrypted test messages