fixed collection and dbref tests (see comments)