Fix bug in uip_server and add test app for separate mac option.