changed test to check if setShow function is defined