Factor out annotation interface tests