We seem to have lost the original tests which also covered where hostgroup_id or environment_id were nil.  Could we keep both? :)