add unit tests for internal pointers