adding addPeriod to client.js mock.