added test for printing nullptr.