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.
Fix exceptions in tests
Fix another test failure
Fix even more tests
Fix another test
Pillow is a better Pil
removing a print stmt