Fix problem in various tests w/ mock algo