Add servlet testing classes and generalize settings access