Fix pair sharing test suite.
First methods for ALPs. In the same time, we are changing API for
object domains to make it more general and clearer.