Adds support for karma test and test coverage - the previous test architecture doesn't change a bit.