WIP: adding karma and jasmine based tests.