Fix unittests warnings

GCC yielded some warnings with `-Wall -pedantic`. This fixes that.