Wrote tests for the base classes.
Created tests for the php libraries.
Added cleanup for the existing tests.