fix getting static inactive users + test
Merge pull request #832 from dimagi/cz

fix getting static inactive users + test