[Tests] using $.each instead of $.map & test control namespace changed