To create and run tests on Windows Server 2008 R2, you need to install the WoW64 component of this operating system.
The Server Core installation option for Windows Server 2008 R2 does not install WoW64 by default, so you should install it yourself.