implemented new unit tests including encrypting an actual message