Only running karma unit tests once in ci mode, fixes #3121.