add simple test for dhcp api and fix support for sparc