Test scanning registry keys