Fixed tests
Added base class for test models.
Added few warnings.