Mujir, Mihir | #457 | Fixing tests. Added an exception for multiple patients matching in the externalized algorithm.