Added unit tests for Mock adapter.