Split two PKCS7 tests into two functions.