fixing addPeriod project api and tests