Added test for memory increment and decrement.