[fabbione/kronosnet] 153a18: libtap: add updown tests and fix off by one check