Add DebugHelperTest

ref https://github.com/rails/rails/pull/9573#issuecomment-14465725