Remove redundant ticks from nm_simple test cases.
Refactor test code.