fix directoryDao relocateDir Test
fix launchpad bug #1259077

now isChildDir also returns true if both dirs are the same. I also added
a Test to check that there are no dirs added twice if one strigs ends
with "/"