Proper binding, unbinding and write tests