Add some tests for detector simulation