Merge change 3850

* changes:
  Fix bug with bad conversion of java strings to C strings for object names.  Update test app to test object defines.