 
         it("outputs the formatted request data") {
             let pluginWithRequestDataFormatter: NetworkLoggerPlugin = {
-                let plgn = NetworkLoggerPlugin()
-                plgn.configuration.output = customLoggerOutput
-                plgn.configuration.logOptions = .verbose
-                plgn.configuration.formatter.requestData = { _ in return "formatted request body" }
-                return plgn
+                let plugin = NetworkLoggerPlugin()
+                plugin.configuration.output = customLoggerOutput
+                plugin.configuration.logOptions = .verbose
+                plugin.configuration.formatter.requestData = { _ in return "formatted request body" }
+                return plugin
             }()
 
             pluginWithRequestDataFormatter.willSend(TestBodyRequest(), target: GitHub.zen)

            let result: Result<Moya.Response, MoyaError> = .success(response)

            let pluginWithResponseDataFormatter: NetworkLoggerPlugin = {
                let plgn = NetworkLoggerPlugin()
                plgn.configuration.output = customLoggerOutput
                plgn.configuration.formatter.responseData = { _ in return "formatted response body" }
                plgn.configuration.logOptions = .verbose
                return plgn
            }()

            pluginWithResponseDataFormatter.didReceive(result, target: GitHub.zen)

        let customLoggerOutput: NetworkLoggerPlugin.Configuration.OutputType = { log += $1.joined() }

        let plugin: NetworkLoggerPlugin = {
            let plugin = NetworkLoggerPlugin()
            plugin.configuration.output = customLoggerOutput
            plugin.configuration.logOptions = .verbose
            return plugin
        }()

        beforeEach {
