DRY some tests