Fixed failing dock test on osx and other platforms.