Made expect functions private
Tests for requests Login and Authenticate functions