Feature/index validation

Added filtering for getted by FK entites 
Bad indixies stay unchanged
getByFK Test