now with spec for on click behaviour