Added functionality and tests for creating products