fixed a few tests so they will run on OSX
fixed a few tests so they will run on OSX


Former-commit-id: be2885ce25cd70edd7bc81b5c2b90b07c6593dcf
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine