Add unit test for setting null values in constructor

This is the test showing the broken aspect in the CMS. Note this test passes in the branch with the fix we applied