Added product unit test hasOneMainCategory