Add end to end test for bindings resource.
Fix wrong type bug in bindings resource.