Add tests for registration, login, logout