Add failing tests to disclose issues with the RerunFormatter

Add failing tests for the handling of failures in background,
scenario outline examples and hooks in the RerunFormatter.
Move helpers to test formatters to TestHelper.