options and req are now declared locally to avoid future errors generated by mocha testers using this lib.