added remove table method
fixed tests