Scientists work on new test for ovarian, endometrial cancers