Remove obj testing, fix double-free crash