Added missing methods for the ReplicateAdapter and simplified its tests.