Add simple test and get it to run. AP-181
Add unit tests to ICoreSystem. AP-175

Warning! Breaks windows build. Really.
Add a few more tests. AP-181
Small refactor to improve handling of CoreSystem objects. AP-181