test case for optimizer