Fixed two front-end tests and email function