Removed unneeded VEC class from the tests.
Fixed code to compile in gcc with -Wsign-conversion.