added tests for ServeHTTP