fixed tests
added simple rate limit check
removed debug traces