test: added test cases for bind to undefined/null