Updated NativeBytesTest.java

Added new test functions along with a main function for test purpose.