Implement writeDetailsToDocument
Can write group box content to json object
Modified unit tests to look at edit AND display roles