made a comparator const in a unit test #859
fixed namespacing of shared_ptr in some unittests #859