Added tests for hookCommand

This PR fixes a small bug on windows and adds more unit tests for the uniter.
There must be another way to do this. 

All the magic fields on version are horrible, loading more meaning onto them feels like a step backwards