Extracting shared tests