Added missing boost/config.hpp file when checking for BOOST_NO_CXX11_DECLTYPE.
Added deferred then tests.