added test with global context for https