Dedinition construction algorithm tests. Tesn type and name lowercase