Fixes unit testing

just some minor fixes. Setting a color by numeric value is now deprecated. It must be set using one of the Color... types. There is only a compatibility check in the more complex graphics directives (and in the longer run, I would prefer to get rid of that, too).