test failed: System.BadImageFormatException : Could not load file or assembly ‘…’ or one of its dependencies. An attempt was made to load a program with an incorrect format
normally it is x86 vs x64 related issues. and you can check your build configuration and make sure they all compile in the same way.
in my case I had to set all individual project build properties to x86