Apex trigger and test class that checks for number of contact roles and a primary contact role on the opportunity object