clarify basic dialog test purpose
use $.each instead of for (key in obj) syntax