modifying test to avoid sqr overflow with signed integer in cover