Fixed - task 423: [bug] truncated alarm names 
https://github.com/asksven/BetterBatteryStats/issues/issue/423

Refactoring for JUnit tests
Added unit tests
Added Unit Tests (to be run in Eclipse)