Added complete tests for translateBandwidthResource, genGroupNameSet. Test translatePersistenceResource is in progress.