integration_tests: corrected error codes in integration tests
integration_tests: api.js now use QUACKPORT and QUACKADDR env variables