Updated syncplan tests using factory and using api to create product

- Updated all sync Plan tests to use UI factory
- Some code indentation changes
- Using api to create product
Could you add a comment explaining why you're taking a slice of the string? This would help understand the reason for doing so.