added a check in driver to see if the context should be closed, not when running a test
had to fall back to tokenized data comparison in tests since the order of values cannot be relied upon