Remove parallel run because of problems with shared memory.
Fix mock for Environment methods.