Allow providing a custom object as a mock

Previously a custom class was used.
Bump to version 0.3.0