add tests for backoff.js