media line tests and fixes