uri warning and testAddGetAggreateted resources test problems solved

- get rid of uri wanirng
- testAddGetAggreateted logic fixed