Unit test and bug fix

Added in a complete unit test for passing the c++ class to an objective
c method via an obj c parameter. All data is intact and passed
successfully. Also, one of the getter methods returned the wrong array.
I fixed this to return the proper array.