Added more optimization mode testcasses.