modified variable cascading unit tests in optimizer.js to account for ALOY-540