Use id attr for gender link; also: try to catch intermittent test failures