Unit tests working as a whole
Fixed crash on inviting existing user