Test hideElement and showElement function