added test that detects a problem with the number of iterations in the result (in combination with runtime restriction)
fixed number of iterations in result