added test for bug 977859 preferences dialog when unregistered