fix loan tests