imap: word imap-test makes for nicer test structure
fix internal-date parsing