Extract mocks.
Update md.
Add SampledInput unittests.