Add test rule and DRY the others.