added testCase for new optimizer functionality