added managed pointer test