add bindparser tests
Merge pull request #1219 from Habbie/bindparser-test

add bindparser tests; useful for doing #1186 with confidence