fix registration issue and modify test's disscusion_is_active()
fix registration problem