Happy path for PeriodsController#update
Added additional assertions for PeriodsController#create to ensure that the period is created
Raise 404 for PeriodsController#update if the period id is not found
Raise 422 for PeriodsController#update if the period is not valid