Updated tests & ByteBuffer guards

Updated tests to use NUnit framework; added test coverage on the
ByteBuffer implementation. Added bounds checks to ByteBuffer get/put
methods