Added test for error element when container initially invisible.