test cases around various optimizers.