migrating optiml tests into forge; fixing bugs that caused test failures