Add some tests for trace#view