bytearrayutil test, some comments added as well