Claymore Homes director John Smith, 49, stood trial at Peterhead Sheriff Court accused of bombarding his former partner with abusive and sometimes sexual messages.