add expectations for close! and flush! on Device