diff --git a/test/curl_client_test.dart b/test/curl_client_test.dart
index 98432e0f0245aef1eb5d5b05855b89fe043c8628..5c94a72b0d1dcf66d32d622bec0758722e929bbf 100644
--- a/test/curl_client_test.dart
+++ b/test/curl_client_test.dart
@@ -58,11 +58,11 @@ void main() {
           'content-type': [
             'application/x-www-form-urlencoded; charset=UTF-8'
           ],
-          'content-length': ['42'],
+          'content-length': ['40'],
           'x-random-header': ['Value'],
           'x-other-header': ['Other Value']
         },
-        'body': 'some-field=value&other-field=other%20value'
+        'body': 'some-field=value&other-field=other+value'
       })));
     }), completes);
   });
@@ -102,11 +102,11 @@ void main() {
           'content-type': [
             'application/x-www-form-urlencoded; charset=UTF-8'
           ],
-          'content-length': ['42'],
+          'content-length': ['40'],
           'x-random-header': ['Value'],
           'x-other-header': ['Other Value']
         },
-        'body': 'some-field=value&other-field=other%20value'
+        'body': 'some-field=value&other-field=other+value'
       })));
     }), completes);
   });
diff --git a/test/oauth2_test.dart b/test/oauth2_test.dart
index 08d97fe4861c15f5956ac259827f7f6579e595ec..f3d38e04a089f9052ab68f4754830da5312915b6 100644
--- a/test/oauth2_test.dart
+++ b/test/oauth2_test.dart
@@ -71,7 +71,7 @@ main() {
       return consumeInputStream(request.inputStream).transform((bytes) {
         var body = new String.fromCharCodes(bytes);
         expect(body, matches(
-            new RegExp(r'(^|&)refresh_token=refresh%20token(&|$)')));
+            new RegExp(r'(^|&)refresh_token=refresh\+token(&|$)')));
 
         response.headers.contentType = new ContentType("application", "json");
         response.outputStream.writeString(JSON.stringify({
@@ -211,7 +211,7 @@ void handleAccessTokenRequest(ScheduledServer server, String accessToken) {
   server.handle('POST', '/token', (request, response) {
     return consumeInputStream(request.inputStream).transform((bytes) {
       var body = new String.fromCharCodes(bytes);
-      expect(body, matches(new RegExp(r'(^|&)code=access%20code(&|$)')));
+      expect(body, matches(new RegExp(r'(^|&)code=access\+code(&|$)')));
 
       response.headers.contentType = new ContentType("application", "json");
       response.outputStream.writeString(JSON.stringify({