CRM-5296 test harness

committing the test part of CRM-15296 - have marked the part the issue refers to as incomplete so commit can be separate