Added unitTest for Language. Bug fixed in Manager and Resource.