setVisible was breaking tests so fixed that