add unit tests for nt