Add some documentation for writing complex tests