revised test per Jeremy's suggestion