Add missing getPeriod() function to graph object in test