finishes implementation of periodic_array_data and tests