fix addTest promise example