Running tests through active record