updated unit tests
renamed private function