Fix shape tests when no API is defined