Improved regression test (again) to make it reproducible