Moved the bytebuffer to aux library and added a test (not using ctest for
the moment)