updated spec with shared example