Example with test loop