Add test for period widths
Add test for weighting
Add test for empty inputs