diff --git a/lib/browserid/views.js b/lib/browserid/views.js
index 42810d86171f1e1691bc4736fcef47299602e465..0ca111100a1211e636c1e17cda6a818486223e0b 100644
--- a/lib/browserid/views.js
+++ b/lib/browserid/views.js
@@ -158,7 +158,7 @@ exports.setup = function(app) {
   // serve up testing templates.  but NOT in staging or production.  see GH-1044
   if ([ 'https://browserid.org', 'https://diresworb.org' ].indexOf(config.get('public_url')) === -1) {
     // serve test.ejs to /test or /test/ or /test/index.html
-    app.get(/^\/test\/?(?:index.html)?$/, function (req, res) {
+    app.get(/^\/test\/(?:index.html)?$/, function (req, res) {
       res.render('test.ejs', {title: 'BrowserID QUnit Test', layout: false});
     });
   } else {