add test cases for integer overflow (#25)
fix integer overflow; fixes #25