const-without-assign test and related fix