Move the unit test support items to a different module

This allows for parallel compiling and makes it more modular
(cherry picked from commit d7bd02a)