[test] Fix play_buffer test

Initialize buffer and handle buffer conversion in big-endian systems.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>