Fixing the tests to check --ex instead of -ex