add check for null tests