Unit tests adjustment for x64 and some adjustments in codebase too;