Adding a parameterised test for solvers
Minor bug fix in MetricFactory