Add tests for bind::generate