Fixed tests on Linux/OSX.