refactor test code for should redraw grid with user input on it