Added unit tests to adapters.