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
For future reference, it would be nice to standardize the way we create dictionaries by enforcing ``unicode`` for all keys.