Test filtering get_instances by reason code