CollectionTest moved private method

Moved private function registerWriter() to the bottom of the class.