Add Ruby::Hash detect() test