Add test for null in constructor #592