refactor & tests for playlist embed_audio and link_externally actions