Fixed makeIdenticalTo bug, added more tests