Minor enhancement suggested by MonoDevelop
Added tests for TypeToEntity