The present invention provides a device for detecting the presence of an analyte in a liquid sample. The device has an opening for introducing the liquid sample into a first chamber for collecting the liquid sample, and a second chamber connected to the first chamber by a passageway and containing a test element. The device also has a third chamber connected to the second chamber by a channel and containing a movable member having first and second positions. The third chamber is divided by the movable member into first and second zones, and the first zone has a vent hole. The movable member is in contact with at least one wall of the third chamber to prevent gas communication between the first and second zones.