Started writing tests for orm helper functions