Added create and drop tests for TableProvider, fixed bugs and some refactoring done