Warnings fix, remove Wshadow from tests.
Add more warnings and fix some of them.