Add test to cover programmatic lookup