Add unit tests for SchedulePeriod entities.

Signed-off-by: Max Fierke <max@maxfierke.com>