Wrote tests for the pointer handling in XModel.