Added a test for capture.