Remove printf debugging
Fix a lot of problems with the xpcshell test

Still not 100% there, though.