add unit tests for default bindings and fix bugs
unit tests for default bindings