fix Test for ParameterizedTest
Add feadback of #969
* extract a constant for this Pattern
* use while loop (replace and not replaceall)
* use "0" instead of 0