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