Refactor and re-enabe unittest to prepare for some speed optimisations

Preparing to make CCM fast enough for https://github.com/quattor/ncm-query/pull/5, came to the conclusion that CCM needed to run all unittests first.
This file changes just for this `use warnings` and everything else seems to be formatting. Just revert the file, and add the `use warnings` line.