added test for large inputs