Email testing

Wrote tests for email and appointments controller. However, didn't get one email method to work due to url helpers for tests not working.