add test for nested dispatcher