fix js test by updating function name