Created OperatingSystem.validate() function

Using the validate function to further find my mysterious bug.
I've added more query tests to the OS unit test. More need to be done.