add new tests for nt
add testcode