fix #985 make sFactory private in factories

* fix #985 make sFactory private in factories
* UI tests are unusable, so I removed all of them
* fix WPHtml test
Should we move this (and others like it) to a static initializer?

Good discussion <a href="http://stackoverflow.com/questions/7121213/singleton-instantiation">here.</a>