added tests for capture