fix test checking for null instead of default(int) value