close test cursor after insert