Fixed subdocument condition tests