changed test to better utilize regular expressions.