Added unit test for S/MIME encryption