TDD tests converted to BDD

Sequence of updating the constants updated in server.js

In bridge callback updated to handle error in callback