Simplified test set up and added method for comparing actual results
against a regular expression.
Simplified test set up.