reproduce #120 situation

add test code to check #120 situation, solution is proposed in #125