chore(karma): refactor testing to use requirejs