Add test for lookup on `idAttribute`