bugfix: content can be unicode sometimes
add test for scheduler