update tests for optimizers