fixed tests to work with parallel em