Fix incorrect certificate test

The original test was not deriving from `ModuleStoreTestCase` and
introducing a course leak that broke other non-related tests.