Updates to use karma tests.