Tests for orm object