[refactors][tests] regression test for original bug