Removed fileToBuffer usage from test code.

Avoids dynamic linking issues.