closeframe need mask; add close test