Few test fixes and compilation warnings.