fixed binding initialization.
Added test for pull request #47
Merge pull request #47 from rappid/binding

fixed binding initialization.