added rm_endmark testing