test: add regression test for applyNext problem
0.3.2