DRY up specs using shared examples