Use public function in the test case