Add test for sub folding with attributes
Note that anonymous subroutine folding works in the changelog