Add first tests for ActiveRecord
Fix return type on checking a model for errors