add test for handler chain