add private function and expose it for testing
added sample node library module
add sample node module with parameters