Add test case with legacy expression