Get karma unit tests running as part of Maven build

Tidied up tests a teeny bit to ensure it passes :) Removed tests were almost all obsolete.

Build will now fail if karma unit tests fail