add unit test for os detection