refactor(karma.conf): change karma configs to reuse code