More unit test fixes for when magic quotes is on to make sure impact is correct.