Adding test for emails + setting email by environment