Sanitize html test strings
Move eunit tests to separate file