replaced the warning when json-ld is not installed by an exception when setting a not allowed format (issue #38)
adapted testSetReturnFormat() according the latest changes introduced by issue #38