test getBy with multiple hits