adding more test cas for testOptimizer.cpp