Some convenience for karma testing.