Create a new class instance per test method

* This makes sure the class attributes are not shared across test methods
Fix a bug inside of HTTP test template