fixes the express not define error
fixes the tests errors
Merge pull request #1363 from fordguo/master

fixes the express not define error