Added several tests

Including one optional tuntap test (that depends on tuntap).