#80 fix some unit tests and add gmail sending sample