test(engine): set variable twice with different types that overlap

failing testcase for CAM-2548