test if bae is avaliable when use lib/mail