Fix limit and add test.