adding additional unit test functions to check whether pointer arrays are equal