Fixing typo and adding another test to ensure trimming works when singing metadata