Improve bind_resources error treatment
Refactor binding tests