Fix test text.
Extract a method.