Added basic tests to the bind function