Login client for tests
Add tests for editing