Don't test deprecated function.

* utils.memoize has been moved to salt.utils.decorators. Don't test it here.
Fix unit tests for Postgres on some platforms

 * Fix for inconsistent behavior wherein systems will use varying escaping behavior for quotes and double-quotes. (Most notably, Ubuntu 10 for some oddball reason.

  * Reformatting.
Merge pull request #9480 from cachedout/unit-tests

Unit tests