example code for testing netdp lib