Fixed a couple of compiler warnings when building unit tests