Allow a resolver to be passed into moduleFor.

This enables multiple resolvers to be used for a single test suite.