V4 - Unit Testing

Configuring attributes like this worked for me:

  const attributes = {
    name: `token${getRandomID()}`,
    description: "",
    type: "custom",
    lifespan: null,
    permissions: [
      "api::restaurant.restaurant.find",
    ]
  };