* Fix Registry restore_global_handlers() and Tests

Fix wrong state for self::$install_global_handlers flag
and some tests in the RegistryTest