Adding a test which verify that happen when the begin position==end position. I found a bug and this test just check if fhe fix work (check "Small bug fix" commit).