var.h: Adding unit tests.