added tip and tipType karma tests