1. Run "ant test:runone -Dtest.runone=CaPKCS11SessionTest"
2. Abort it in the middle (press Ctrl-C)
3. Run it again to let it clean up old data
4. Try to run one more time.
It throws an exception and fails to delete existing data, and a CA named "TEST GEN KEYS" is left in the database. This CA causes problems in the GUI since it doesn't have a cert chain, e.g. it prevents the Internal Key Bindings listing from working.
The test should clean up after itself in step 3 and should work in step 4.