Add tests for limit.