testing capture functionality