Converted test.c to run the same teast as NF_UnitTest. 

Doesn't leverage much outside of assert. I could look into mocking the callbacks properly if I find time.