Add testcase for optimizer bug in FParser