check_vpn: more unit tests, device allocation