Merge pull request #101 from adam-vessey/7.x

Correct preprocess function names.
Created a new test case for shared object deletion.
Corrected small bug in logic. Testes still passing.
Merge pull request #102 from MorganDawe/7.x.purge_test

Created a new test case for shared object deletion.