Flush the registry before generating fixtures.

On travis, there was a ParentCategoryThread instance in the registry
which was causing the test to fail. At least that's what I hope it was.