adding default value test for period