Fixed Editor::addAfter when specified location

When the location was specified in $editor->addAfter(), it wasn't incremented.
Fixed this behavior and updated related test.