added unit tests for badge adjustments