Added new test for commit 1c22f69b (bug fix in adoption agency algo)