link unittest against mapi library