fix orm tests