Use prefer dist flag in tests to combat timeouts