karma fix for navigationviewspec