Fixing bug in tests

That's what you get from copying and pasting and forgetting to
modify the pasted lines to suit your needs.
Merge pull request #730 from ahocevar/fix-rtree-tests

Fixing bug in tests