Fixing the tests and more

relates to previous changes mostly in tests, to
not pollute "randomly created" files the build itself
16 files changed