Unit tests for login, logout, get and post