Extract base class to test all the tables

Change-Id: I6bb59a1563f50fd5dceefe2072ffb6a980a3fdf7
Merge pull request #7 from rodis/feature/tests

Extract base class to test all the tables