Added unit tests for period button in grouping tab presenter. Fixed a bug as a result of test failing