Added exception

Throwing exception when bind not found.
Added c test file.