updated user tests to use api's for dependent entities and using factory

- Removed redundant string lists
- updated all tests to use UI factory
- Some re-factoring of tests
Thank you for closely reviewing and suggesting brace character escaping.