tests: update and improve tests for nitunit

Signed-off-by: Jean Privat <jean@pryen.org>