Fix valid length for test sample binary data.