add test and implement to raise exception when not found