Test cases for handlers with a global context.