refactored correctly finds elems test