added one more test removed unused private function