fixed a missing method after removing dependency on karma