lock and pipe tests