Added integration test for get_leave_applications and get_leave_application_by_id