fixed registry init() and improved test coverage of registry and captcha

Found an issue with registry init() which could cause get() to fail when trying to perform array_key_exists()
Also improved test coverage of registry and captcha