spec: add check for shape