Basic HTTP test cases added (amongst some code cleanups)