Add a test for minimizing ofmd