Add additional checks to automatic_smart_ptr test.

This tests the issue reported in #4 (and seems to invalidate the issue by
succeeding).