Added tests for hookCommand

This PR fixes a small bug on windows and adds more unit tests for the uniter.
The fields on version are currently needed to be able to write userdata for multiple platforms. For example, when running on linux, you need to be able to know that you are writing userdata for windows.

It was used here because version is already imported, and holds the corect OS. If you prefer, I can import runtime as well, and test against that.

Can you elaborate on why those fields are horible? Any context will help me avoid using it in the future.