added undo functionality to slot class with tests/ also strengthened tests in object class for undo functionality