launcher-daemon:: fix get wrong category.

1. add category to nameIdMap.
2. update test files.