Test meant for class_optimize. Will only work with PR #88 since the old class has no way to use a fixed random seed.