In fact since I've changed way of creating metadata in test (metadata is generated by Doctrine, not by mocking it) I'm unable to create case where there would be no identifiers.