remove unused method and add test to ensure lookup based on attributes is working