added proper working tests
fixed bug when not all parts of the name are available