Improve the user app and its tests
One more test passing
Fixed more tests

Several of them failed bacause we replaced lines setting the locality with lines
adding an entity, which resulted in multiple localities for one user, which is
an error which is discovered later when trying to get the locality.