added unit tests for product validation