Template.Components.Datalists tests

- Cleaned up datalist tests.
- Fixed circular reference problem in role view queries.
- Fixed invalid datalist url on non default application paths.