Extracted helpers from core-elements tests