Adds test for doc format

- Fixes the platform model and test
This code was very hard to read and it actually didn't work the way it was intended. There was a bug that the first instrument in the nested site had the array code of the previous array.