creating action 'products_by_category' and tests for it