Strengthen functional test on expression sharing