added mail target
added tests