Fixing failing null assertion test