Set up for unit tests and extracting calculations into separate DLL.