Added tests for overflow cases