Remove useless var
Test messages update and remove warning on scala app