unit test for smime module