tests: starting imap tests, further refinement to map tests