Implemented a unit test for the bind method