add testing functionality to puvsum