Named mocks helper method

Fixes #250