add tests for p12 generation