Fix test return empty hash.