Patch for test

This patches improve tests.
These are not necessary soon but would be needed when we bump core to later versions.
adding a new method ```waitForBuilds(project, number)``` that calls ```waitForBuilds(project, number, DuplicatesUtil.DEFAULT_WAIT_BUILD_MS)``` would be more appropriate.