use 'wb' mode for all tests