Add tests to the SimpleServerFactory.

Check configuration and correct server building.