added test case for custom alerts