Added test for limitAttempts