emgm, ligd: Add some tests for pairs