fixing bug for jasmine testing template