Add test for 'bind' and 'then'