CoW tree: fix test to work on travis ubuntu installation

By some reason, ubuntu:s gcc with -Wall -Werror is more pedantic than
the version on my CentOS. So don't use some creative optimizations for
swapping to variables.

Signed-off-by: Max Sikstrom <msikstrom@op5.com>