Clean up test market code