Fixing AB tests to work with Karma