Added test to check for bad pointers.