added specs for R509::Engine and improved R509::Config::CAConfig

the latter involved some changes to the mocked tests and removing the
"for test only" line in the class (hooray!). Unfortunately I no longer
have access to an HSM to test this code. There really shouldn't be any
problems though.