TEST: testGridLinePattern: Fixed bug not correctly resetting the x-value
in each loop