[tests]: Added login flask tests, in quite a proper way
[tests]: Login tests now use flask's test client __enter__ and __exit__ instead of with, which slightly improves readability