Removed from registry is not work properly.
Fixed accessing registry by index.
Merge pull request #156 from troopjs/fix/registory

Fixed failing tests on registry.