Tests for appointments controller