Add testcase for defines as per issue 12.