IS-2: Create a wrapper for IMAP methods for unit tests purposes.
IS-2: Add unit tests for the method checkPassword.