test canEditProduct