Karma unit test metrics collection