Catch up API unit test with new tun_type field