added some tests & in-browser mail notifications