add test for overflow handling