     }
   end
 
-  def add_three_versions do
+  def add_three_versions(prefix \\ nil) do
     @repo.insert_all(Version, [
       @valid_attrs,
       %{


  # Multi tenant tests
  test "[multi tenant] count works" do
    versions = add_three_versions_multi()
    Version.count(prefix: MultiTenant.tenant()) == length(versions)
  end

  test "[multi tenant] first works" do
    versions = add_three_versions_multi()
    Version.first(prefix: MultiTenant.tenant()) |> serialize == @valid_attrs
  end

  test "[multi tenant] last works" do
    versions = add_three_versions_multi()
    Version.last(prefix: MultiTenant.tenant()) |> serialize != %{
      event: "insert",
      item_type: "Person",

  end

  test "first works" do
    add_three_versions()
    Version.first() |> serialize == @valid_attrs
  end

  test "last works" do
    add_three_versions()
    Version.last() |> serialize != %{
      event: "insert",
      item_type: "Person",
