I think in court if there is public information of the product before the trademark, then the trademark is not valid. That is why when developing patents you have to be secretive and be careful with sharing data prior to patenting