How to write unit test cases for private function of component in angular 9