Fix test

Now it works on Linux and OS X