fixing bugs from first test and writing test for free iova