test/dos: add unit tests for handling NIL: