CHANGE: Fefactoring Email entity, add search queries for quick search test by attachments.