Switch to Karma

Switch from custom test runner to the Karma test runner