Javascript validation functional test; refactor test_list_item_validation