Added tests and implementation for instance.incr