Add a test for cmd_period_change.