Changed test result comparison to ignore line separation and formatting differences. 
Moved commonly-used variables initialization to setUp().