adapted test to let sympa.js return a function