refactored mocker interface and added tests
Merge branch 'release/0.0.1'