added tests for global_context
now using boost_throw_exception in global_context