Test passing parameters in mock.

Closes #18.