Adapt test to new API validation rules