added getProductByCategory method
improved tests