removing some duplicate code in tests
decoupling AbstractHttpServerBuilder from ViewRenderer and JsonMapper implementations