fixed test script and also cumulative functions. added email to travis