fix variable test for osx