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