BUG: use correct algorithm for callable metric
TST: set random state in callable_metric test
Style
More readable condition and more precise error message