add bufferstruct tests