add marker bit stream and tests