fixed double decref causing double-free and enabled unittests (all pass)