Use smart pointer in test.
Use smart pointer in test.

People use the unit tests as exapmles for getting started, we don't
want to propagate the manual memory allocation/deallocation idiom
unnecessarily.

Closes #1110.

capitalaslash/libmesh,dschwen/libmesh,90jrong/libmesh,roystgnr/libmesh,friedmud/libmesh,benkirk/libmesh,benkirk/libmesh,friedmud/libmesh,pbauman/libmesh,svallaghe/libmesh,svallaghe/libmesh,roystgnr/libmesh,90jrong/libmesh,pbauman/libmesh,friedmud/libmesh,benkirk/libmesh,vikramvgarg/libmesh,vikramvgarg/libmesh,benkirk/libmesh,benkirk/libmesh,hrittich/libmesh,hrittich/libmesh,svallaghe/libmesh,roystgnr/libmesh,90jrong/libmesh,dschwen/libmesh,friedmud/libmesh,libMesh/libmesh,libMesh/libmesh,benkirk/libmesh,BalticPinguin/libmesh,friedmud/libmesh,balborian/libmesh,friedmud/libmesh,jwpeterson/libmesh,jwpeterson/libmesh,capitalaslash/libmesh,balborian/libmesh,balborian/libmesh,giorgiobornia/libmesh,balborian/libmesh,BalticPinguin/libmesh,vikramvgarg/libmesh,roystgnr/libmesh,pbauman/libmesh,capitalaslash/libmesh,balborian/libmesh,dschwen/libmesh,hrittich/libmesh,hrittich/libmesh,capitalaslash/libmesh,pbauman/libmesh,giorgiobornia/libmesh,svallaghe/libmesh,90jrong/libmesh,BalticPinguin/libmesh,BalticPinguin/libmesh,pbauman/libmesh,vikramvgarg/libmesh,pbauman/libmesh,capitalaslash/libmesh,jwpeterson/libmesh,vikramvgarg/libmesh,vikramvgarg/libmesh,libMesh/libmesh,dschwen/libmesh,friedmud/libmesh,giorgiobornia/libmesh,dschwen/libmesh,BalticPinguin/libmesh,hrittich/libmesh,BalticPinguin/libmesh,dschwen/libmesh,friedmud/libmesh,vikramvgarg/libmesh,giorgiobornia/libmesh,hrittich/libmesh,dschwen/libmesh,balborian/libmesh,pbauman/libmesh,libMesh/libmesh,roystgnr/libmesh,roystgnr/libmesh,90jrong/libmesh,90jrong/libmesh,libMesh/libmesh,90jrong/libmesh,hrittich/libmesh,dschwen/libmesh,balborian/libmesh,libMesh/libmesh,pbauman/libmesh,90jrong/libmesh,jwpeterson/libmesh,benkirk/libmesh,giorgiobornia/libmesh,svallaghe/libmesh,svallaghe/libmesh,svallaghe/libmesh,jwpeterson/libmesh,svallaghe/libmesh,capitalaslash/libmesh,hrittich/libmesh,libMesh/libmesh,giorgiobornia/libmesh,vikramvgarg/libmesh,90jrong/libmesh,libMesh/libmesh,jwpeterson/libmesh,pbauman/libmesh,svallaghe/libmesh,benkirk/libmesh,BalticPinguin/libmesh,giorgiobornia/libmesh,hrittich/libmesh,capitalaslash/libmesh,roystgnr/libmesh,capitalaslash/libmesh,jwpeterson/libmesh,roystgnr/libmesh,vikramvgarg/libmesh,jwpeterson/libmesh,benkirk/libmesh,giorgiobornia/libmesh,balborian/libmesh,giorgiobornia/libmesh,balborian/libmesh,BalticPinguin/libmesh,balborian/libmesh,friedmud/libmesh