updated tests to work on older alfresco versions, implemented setContentStream