added unit tests for product