Add some tests for bind