Fixed repository insert test that was failing