Adding tests for ADI + fix update_inc (bug 1014752)