ticket:4 add test for context proc