Set more sane defaults for testing and fix error in escaping strings