Add unit test for numtracker