add testnameFormatter to manipulate the individual test names.
rename nameFormatter to filenameFormatter.
pass the karma test result to the formatter functions (I'm using this to add test suite information to the names so I don't get duplicate test names which sonar rejects).