fix for JENKINS-10914
* checking if project is IncrementalBuild, to be sure, that arguments need to be removed
* added tests