added basic test of all public function