Fix potential memory corruption in tests
Test suites build on windows
Ignore test binaries