port logical tests to test/unit.cpp - refs #15