Unit tests for null handling.