Factor out SqliteTest base unittest class
Add CardType