add tests to servlet
makes servlet reponse configurable