throttle: Add units tests