Fix errors in javascript tests for logout and sessions