added opts handling to mock-server-methods.
fix leak.
Merge pull request #323 from npm/bcoe/performance-fix

fixes tests, by adding opts handling to mock-server