Squashed a few code lines
Changed shouldPass to reuse getErrorMsg

This reduced a little duplication
Made test heading more descriptive