add test an fix empty type parsing