fix end-to-end test on OSX