Testcase for bug with constants.