Improve test loggin
add email notification
add rest interface