updated resultGenerator test

Fixed some bugs in the process