Some null tests added in constructor with variable parameters