Fixed error in encoding the test binary