Added test when finding entities by arbitrary field