fixed the table class
added the delete test