Unit testing karma controllers post