implemented test file reproducing the problem