Fixing the free in the test