Test for querying documents in the renamed folder

There is a test which demonstrates that after folder has been moved (renamed) it's children can't be queried any more. 
Used simple repository configuration.
I saw a bunch of issues in JIRA that may be related, so decided not to add another one.
It could be I'm doing something wrong.