add test for context of handlers