Wrote a test for 3999 and made it pass