Auto ptr checks in tests