created isCustomBinding check at the start of the get binding func; added a test for error types