Here's a patch to fix the unit test and add it to the demo dataset (it can't be run in init or update because it uses demo data).
Here's a patch to fix the unit test and add it to the demo dataset (it can't be run in init or update because it uses demo data).