will revert this commit; add test-middleware-functional to 'grunt test' to get it to run on travis