fix tests and disable msvs warnings