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