FP rewrite of the the for-loops in tools test
FP rewrite of the the for-loops in tools test

This should provide similar functionality but easier to ensure
correctness.

Signed-off-by: Jonathan Sifuentes <2348f286ef7ed912a59623d8cc1c5c0879c100fd@gmail.com>

themasch/node-ebml