added test for chained function binding