added tests for os.q