[MIE-670] - Replace Jasmine with Mocha; add test for cookie auth endpoint.