Add getPeriod & setPeriod + their tests