refactoring test_get_activity_time_series