tests: Added email unit tests to verify login credential connection re-use