img hide test refactored