generate test data for encoding