Refactor to use WRITEBINARYDATA during test setup, where applicable.
This makes the test logic easier to read.
Authored by: david_costanzo 2020-04-12
Parent: [r5184]
Child: [r5186]