unbind handlers with data + test (#935)