fixed bug for concurrent replament pairs
Add test for concurrent keys in replacement pairs
Merge pull request #21 from jaumeortola/master

fixed bug for concurrent replament pairs