Fixed function test that stopped registry rebuild.
Merge pull request #128 from arjenk/bugfix/registry-rebuild

Your pull request has been merged, thanks Bro.