build: Enable tests when building from xbuild or an IDE