Test fixes

IMO methods such as logIn, logOut should not be throwing IOException. Better to handle gracefully internally.