Add spechelper and add tests for parseReferrers, parseRefDomains and parseErrors