Learning about Javascript testing