new tests. fixed bug where decrementing pointer case was not handled