improved Linux support for tests.