fix bug in nt_tests