Do bulk posting metrics when retrying metrics sending

- Added test that `command.loop()`'s retry working correctly
- Made post interval a variable rather than magic numbers
  - so that testing `loop` made short