Move similar tests to shared examples