Add some basic unit tests for NG