I was going to just reply to this post, but I decided to post a bug report instead. It seems like removeAll() and removeSprites(array) might be bugged. If you use sprite:remove() instead, I think the issue doesn't happen.
for k, v in pairs(testSprites) do v:remove() end