Convert mail related test cases into new api.
[Add] Changes for except_orm.
Convert mail related test cases into new api.