add test around conditional prompt show logic